package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 用户登录请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-14
 */
@Data
@Schema(title = "SysUserLoginRequest", description = "用户登录请求体")
public class SysUserLoginRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -867857132536694981L;

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @Schema(title = "loginAccount", description = "用户账号")
    private String loginAccount;

    /**
     * 密码
     */
    @NotBlank(message = "用户密码不能为空")
    @Schema(title = "password", description = "密码")
    private String password;

    /**
     * 验证码ID
     */
    @NotBlank(message = "验证码ID不能为空")
    @Schema(title = "captchaKey", description = "验证码ID")
    private String captchaKey;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    @Schema(title = "captchaCode", description = "验证码")
    private String captchaCode;
}
